#ifndef _CONFIG_H_
#define _CONFIG_H_

#include <curl/curl.h>
#include <stdbool.h>
#include "yweather.h"
#include "gmail.h"
#include "clock.h"
#include "mpd.h"



#define INIT_FUNCTIONS {yweather_start,  gmail_start, mpdstatus_init, NULL }
#define DATA_FUNCTIONS { get_mpdstatus, get_gmail,  get_yweather, clock_get_time,  NULL } 

/*  configuration settings for the dwmstatus */
#define UPDATE_TIME 60
#define ITEM_SEPARATOR " "

#define CLOCK_FORMAT "%a %b %d %l:%M %P"

#define VOLUME_FORMAT "vol: %i%%"

#define STATUS_FORMAT "%s %s %s"

#define GOOGLE_WEATHER_URL "http://www.google.com/ig/api?weather=44212"

#define YAHOO_WEATHER_URL "http://weather.yahooapis.com/forecastrss?w=12776696"


#define UPDATE_WEATHER_INTERVAL (60 * 30)

#define WEATHER_FORMAT "%s %s\260F"

#define USER_AGENT "libcurl-agent/1.0"

#define GOOGLE_MAIL_URL "https://mail.google.com/mail/feed/atom"

#define MAIL_FORMAT "%s unread"

#define UPDATE_MAIL_INTERVAL (60 * 10)

/*
 The temperature node has 2 possible settings.
    - temp_f  if you want farenheit
    - temp_c  if you want celcius
*/
#define TEMP_NODE "temp_f"

/* Settings used for curl interface */
#define VERIFYPEER   false
#define NETRC CURL_NETRC_REQUIRED

/* Settings for the mpd status */
#define MPD_HOST "localhost"
#define MPD_PORT 6600
#define MPD_PASSWORD NULL
#define MPD_CONNECTION_TIMEOUT 10
#define MPD_FORMAT "[%s <%s>]"

/* number of micro seconds to update status of MPD */
#define MPD_UPDATE 100000

/* states that mpd may be in */
#define PLAYING "Playing"
#define PAUSED "Paused"
#define STOPPED "Stopped"


#endif
